﻿using SUNRPA.CONTROLS.IMPL.domain.attrubutes;
/// <summary>
/// Excel有Office和Wps目前只支持Office后期加入Wps支持。
/// </summary>
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class HideAndShowSheetNParam:BaseParam {
        private string excelObject = "{excelObject}";
        private string sheetName;
        //0隐藏、1显示
        private int hideOrShow = 0;
        public string ExcelObject {
            get => excelObject; 
            set { 
                excelObject = value;
                NotifyPropertyChanged("ExcelObject");
            }  
        }
        public int HideOrShow {
            get => hideOrShow; 
            set { 
                hideOrShow = value;
                NotifyPropertyChanged("HideOrShow");
            }  
        }
        public string SheetName {
            get => sheetName; 
            set { 
                sheetName = value;
                NotifyPropertyChanged("SheetName");
            }  
        }

        public string GetTranslateHideOrShow() {
            if(this.hideOrShow == 0) { 
                return "隐藏";
            }
            return "显示";
        }
    }
}
